FROM openjdk:17

ENV APP_HOME /root/apps/mall-goods
RUN mkdir -p "$APP_HOME"
WORKDIR $APP_HOME

COPY mall-goods-server-1.0.0.jar $APP_HOME
COPY run.sh $APP_HOME

EXPOSE 18084

ENTRYPOINT ["/root/apps/mall-goods/run.sh", "start"]